using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Vue_AspNetCore_Project.Models;

namespace Vue_AspNetCore_Project.Models {
    public class Feedback {
        [Key]
        [DatabaseGenerated (DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        [StringLength (500)]
        [Display (Name = "内容")]
        public string Content { get; set; }

        [Required]
        [ForeignKey ("User")]
        public int UserId { get; set; }

        public ApplicationUser User { get; set; }

        public DateTime CreatedTime { get; set; }
        public DateTime UpdatedTime { get; set; }

        [StringLength (100)]
        public string CreatedBy { get; set; }

        [StringLength (100)]
        public string UpdatedBy { get; set; }
    }
}